#include "CNumberFactory.h"
class  CNumber:public CNumberFactory
{
public:
	int a = 0;
	void SetValue(int number) { a = number; }
	int GetValue() { return a; }
	void  Add(int number) { a = a + number; }
	void Sub(int number) { a = a - number; }

};


CNumberFactory* CNumberFactory::Create()
{
	return new CNumber();
}